//
//  PlayerView.h
//  ICE_Player
//
//  Created by lijinxin on 11-10-13.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICE_View_Interface.h"
#import "Player_Loop_Mode_Btn.h"
#import "Player_Play_Btn.h"
#import "Player_Return_Btn.h"
#import "Player_Screen_Mode_Btn.h"
#import "Player_Silent_Icon.h"
#import "Player_Time_Pos_Bar.h"
#import "Player_Time_Pos_Btn.h"
#import "Player_Vol_Pos_Bar.h"
#import "Player_Vol_Pos_Btn.h"
#import "Player_Volume_Btn.h"
#import "Player_Pause_State_Icon.h"
#import "Player_Audio_BG_Logo.h"
#import "EkkVideoView.h"

@interface PlayerView : EkkVideoView <ICE_View_Protocol>
{
    //Controls
    Player_Loop_Mode_Btn* p_loop_mode_btn;
    Player_Play_Btn* p_play_btn;
    Player_Return_Btn* p_return_btn;
    Player_Screen_Mode_Btn* p_screen_mode_btn;
    Player_Silent_Icon* p_silent_icon;
    Player_Time_Pos_Bar* p_time_pos_bar;
    Player_Time_Pos_Btn* p_time_pos_btn;
    Player_Vol_Pos_Bar* p_vol_pos_bar;
    Player_Vol_Pos_Btn* p_vol_pos_btn;
    Player_Volume_Btn* p_vol_btn;
    Player_Pause_State_Icon* p_pause_state_icon;
    ICE_Image_View* p_finger_drag_icon;
    Player_Audio_BG_Logo* p_bg_audio_logo;
    
    //Labels
    ICE_Label_View* p_movie_name_lbl;
    ICE_Label_View* p_cur_time_lbl;
    ICE_Label_View* p_cur_vol_lbl;
    //globalize labels
    ICE_Hidable_Label_View* p_g_ret_lbl;
    ICE_Hidable_Label_View* p_g_lm_lbl;
    ICE_Hidable_Label_View* p_g_sm_lbl;
    ICE_Hidable_Label_View* p_g_ps_lbl;
    ICE_Hidable_Label_View* p_g_fc_lbl;
    
    UIViewController* player_controller;

    
    BOOL is_pause_state_icon_hide;
    BOOL is_ai_view_hide;
    BOOL is_controls_hide;
    BOOL is_silent_icon_hide;
    
    CGPoint drag_begin_pt;
    CGPoint drag_end_pt;
    CGRect drag_begin_pos;
    CGRect drag_end_pos;
}

//Controls
@property (nonatomic, retain) IBOutlet Player_Loop_Mode_Btn* p_loop_mode_btn;
@property (nonatomic, retain) IBOutlet Player_Play_Btn* p_play_btn;
@property (nonatomic, retain) IBOutlet Player_Return_Btn* p_return_btn;
@property (nonatomic, retain) IBOutlet Player_Screen_Mode_Btn* p_screen_mode_btn;
@property (nonatomic, retain) IBOutlet Player_Silent_Icon* p_silent_icon;
@property (nonatomic, retain) IBOutlet Player_Time_Pos_Bar* p_time_pos_bar;
@property (nonatomic, retain) IBOutlet Player_Time_Pos_Btn* p_time_pos_btn;
@property (nonatomic, retain) IBOutlet Player_Vol_Pos_Bar* p_vol_pos_bar;
@property (nonatomic, retain) IBOutlet Player_Vol_Pos_Btn* p_vol_pos_btn;
@property (nonatomic, retain) IBOutlet Player_Volume_Btn* p_vol_btn;
@property (nonatomic, retain) IBOutlet Player_Pause_State_Icon* p_pause_state_icon;
@property (nonatomic, retain) IBOutlet ICE_Image_View* p_finger_drag_icon;
@property (nonatomic, retain) IBOutlet Player_Audio_BG_Logo* p_bg_audio_logo;

//Labels
@property (nonatomic, retain) IBOutlet ICE_Label_View* p_movie_name_lbl;
@property (nonatomic, retain) IBOutlet ICE_Label_View* p_cur_time_lbl;
@property (nonatomic, retain) IBOutlet ICE_Label_View* p_cur_vol_lbl;
//globalize labels
@property (nonatomic, retain) IBOutlet ICE_Hidable_Label_View* p_g_ret_lbl;
@property (nonatomic, retain) IBOutlet ICE_Hidable_Label_View* p_g_lm_lbl;
@property (nonatomic, retain) IBOutlet ICE_Hidable_Label_View* p_g_sm_lbl;
@property (nonatomic, retain) IBOutlet ICE_Hidable_Label_View* p_g_ps_lbl;
@property (nonatomic, retain) IBOutlet ICE_Hidable_Label_View* p_g_fc_lbl;


- (IBAction)On_Vol_Drag:(id)sender;

- (void)On_Hide_All_Control;
- (void)On_Display_All_Control;

- (void)Enable_All_Control:(BOOL)enabled;

@end
